package com.tsd.jxc.goods.service;

import com.tsd.core.vo.HttpResult;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.goods.entity.JxcGoods;
import com.tsd.jxc.goods.entity.JxcGoodsExt;
import com.tsd.jxc.goods.vo.JxcGoodsImportVo;
import com.tsd.jxc.goods.vo.JxcGoodsVo;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcGoods服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:02:35
 */
public interface JxcGoodsService {

    /**
     * 描述：根据id获取JxcGoods
     *
     * @param id
     */
    JxcGoods getJxcGoodsById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcGoods
     *
     * @param sid
     */
    JxcGoodsExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcGoods
     *
     * @param list
     */
    void deleteJxcGoodss(List<String> list, SysUser opUser) throws Exception;

    /**
     * 恢复记录
     *
     * @param list
     * @param opUser
     * @throws Exception
     */
    void resumeJxcGoodss(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcGoods
     *
     * @param record
     * @param opUser
     */
    void saveJxcGoods(JxcGoodsExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcGoods
     *
     * @param params
     * @param page
     */
    List<JxcGoodsExt> findJxcGoodss(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcGoods
     *
     * @param params
     */
    List<JxcGoodsExt> findJxcGoodss(Map<String, Object> params) throws Exception;

    List<JxcGoodsVo> queryJxcGoodsList(Map<String, Object> params, PageBean page) throws Exception;

    List<JxcGoodsVo> queryJxcWarehouseGoodsList(Map<String, Object> params, PageBean page) throws Exception;

    List<JxcGoodsVo> queryJxcClothingGoodsList(Map<String, Object> params, PageBean page) throws Exception;

    HttpResult<Object> importJxcGoods(String warehouseSid, List<JxcGoodsImportVo> list, SysUser opUser) throws Exception;
}
